#ifndef COURSE_PUB_H
#define COURSE_PUB_H

#include "common_pub.h"

typedef struct {
    char id[MAX_ID_LEN];
    char name[MAX_NAME_LEN];
    char type[30];
    int hours;
    float credit;
    int selected_count;
    int max_students;
} Course;

int add_course(const char* id, const char* name, const char* type, 
               int hours, float credit, int max_students);
int delete_course(const char* id);
Course* find_course(const char* id);
int update_course(const char* id, const char* new_name, const char* new_type,
                  int new_hours, float new_credit, int new_max);
void display_all_courses();

#endif
